% results
For testing our \doclists{} framework, we used a set of small test corpora containing a few example
sentences. These can be found in the `corpora' folder of the project's googlecode-page, an example
corpus is given in figure \ref{fig:corpus}, representing a number of diferent documents consisting
of several strings.
\begin{figure}[h]
\small{
	\begin{verbatim}
# Doc: doc1
John loves Mary. John hates Timmy. John loves Timmy.

# Doc: doc2
Foo foo foobar.

# Doc: doc3
Mary loves Jane.

# Doc: doc4
John loves Jane. Mary loves John.
	\end{verbatim}
}
\caption{A small example corpus}
\label{fig:corpus}
\end{figure}

Using \doclists{}, we were able to generate \st{s} from such corpora, and after that to use simple
queries to retrieve relevant documents. For example, generating a tree for the documents of figure
\ref{fig:corpus}, a query for \emph{`John loves'} returns \emph{doc1 (2), doc4 (1)} as relevant
documents while a query for \emph{`Mary loves'} returns \emph{doc3 (1), doc4 (1)}.
The numbers in brackets show hof frequently the queries occured in the releveant documents.

\subsection*{Obtaining and using \doclists{}}
The \doclists{} framework can be obtained and be set up for use in a few simple steps.
\begin{itemize}
	\item Go to http://code.google.com/p/doclists/source/checkout and follow the instructions to
	retrieve a local copy of the sources.
	\item Compile the sources.
	\item \todo{program a demo-class for use via command line!}
	\item Once a \st{} has been built for the selected corpora, you may query it for arbitrary
	strings, and you receive a list of documents containing those strings.
\end{itemize}

\begin{figure}[h]
\small{
	\begin{verbatim}
\$> java Doclists.java --generate --corpus=corpora/fooCorp \
    --tree=trees/fooTree
\$>    ... generating Suffix Tree from corpora/fooCorp
\$>    ... adding Document doc1
\$>    ... adding Document doc2
\$>    ... adding Document doc3
\$>    ... adding Document doc4
\$>    ... saving Suffix Tree to trees/fooTree
\$>    ... generation successful!
\$>
\$> java Doclists.java --query --tree=trees/fooTree \
    --search="John loves"
\$>    ... loading Suffix Tree from trees/fooTree
\$>    ... searching for "John loves"
\$>    ... Relevant Documents: doc1 (2), doc4 (1)
	\end{verbatim}
}
\caption{Generating a \st{} and querying via the command line}
\label{fig:systemcall}
\end{figure}
